<?php
/* v 0.0.0.1*/
  class jsontotable{
      public function insert($table, $data){
          $ci =& get_instance();
          
          $ci->load->database();
          
          $ci->db->insert($table, $data);
          
          return $ci->db->insert_id();  
      }
  }
?>
